<?php
if (!defined("_INDEX")) { header("Location: /"); die; }

switch($route->getAction())
{
	/* --- admin --- */
	case "chat": require_once AJAX.DS."chat".DS.MAIN; break;
	
	/* --- users --- */
	case "reply": require_once AJAX.DS."reply.php"; break;
	case "vote": require_once AJAX.DS."vote.php"; break;
	case "polls": require_once AJAX.DS."polls".DS.MAIN; break;
	case "like": require_once AJAX.DS."like.php"; break;
	
	/* --- system --- */
	case "checklogin": require_once AJAX.DS."checklogin.php"; break;
	
	default: goToPage();
}

?>